using UnityEngine;
using System.Collections;

public class Wait : MonoBehaviour 
{
	public bool isWaiting = true;
	void Start () 
	{
	
	}
	
	void Update () 
	{
	
	}
	
	public void StartWaiting(int sec)
	{
		StartCoroutine("Waiting", sec);
	}
	
	private IEnumerator Waiting(int sec)
	{
		yield return new WaitForSeconds(sec);
		isWaiting = false;
	}
}
